package com.dgy.eval.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dgy.eval.mapper.TeachEvalSummaryMapper;
import com.dgy.eval.domain.TeachEvalSummary;
import com.dgy.eval.service.ITeachEvalSummaryService;

/**
 * 教学评价总结Service业务层处理
 * 
 * @author ccc
 * @date 2025-02-12
 */
@Service
public class TeachEvalSummaryServiceImpl implements ITeachEvalSummaryService 
{
    @Autowired
    private TeachEvalSummaryMapper teachEvalSummaryMapper;

    /**
     * 查询教学评价总结
     * 
     * @param recordId 教学评价总结主键
     * @return 教学评价总结
     */
    @Override
    public TeachEvalSummary selectTeachEvalSummaryByRecordId(Long recordId)
    {
        return teachEvalSummaryMapper.selectTeachEvalSummaryByRecordId(recordId);
    }

    /**
     * 查询教学评价总结列表
     * 
     * @param teachEvalSummary 教学评价总结
     * @return 教学评价总结
     */
    @Override
    public List<TeachEvalSummary> selectTeachEvalSummaryList(TeachEvalSummary teachEvalSummary)
    {
        return teachEvalSummaryMapper.selectTeachEvalSummaryList(teachEvalSummary);
    }

    /**
     * 新增教学评价总结
     * 
     * @param teachEvalSummary 教学评价总结
     * @return 结果
     */
    @Override
    public int insertTeachEvalSummary(TeachEvalSummary teachEvalSummary)
    {
        return teachEvalSummaryMapper.insertTeachEvalSummary(teachEvalSummary);
    }

    /**
     * 修改教学评价总结
     * 
     * @param teachEvalSummary 教学评价总结
     * @return 结果
     */
    @Override
    public int updateTeachEvalSummary(TeachEvalSummary teachEvalSummary)
    {
        return teachEvalSummaryMapper.updateTeachEvalSummary(teachEvalSummary);
    }

    /**
     * 批量删除教学评价总结
     * 
     * @param recordIds
     * @return 结果
     */
    @Override
    public int deleteTeachEvalSummaryByRecordIds(Long[] recordIds)
    {
        return teachEvalSummaryMapper.deleteTeachEvalSummaryByRecordIds(recordIds);
    }

    /**
     * 删除教学评价总结信息
     * 
     * @param id 教学评价总结主键
     * @return 结果
     */
    @Override
    public int deleteTeachEvalSummaryById(Long id)
    {
        return teachEvalSummaryMapper.deleteTeachEvalSummaryById(id);
    }
}
